﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq.Mapping;
using System.Web;

namespace internet_shop.Models
{
    [Table(Name = "Goods")]
    public class Product
    {
        #region Properties

        [Column(IsPrimaryKey=true, IsDbGenerated=true, AutoSync=AutoSync.OnInsert)]
        public long? ID { get; set; }

        [Column]
        public string Brand { get; set; }

        [Column]
        public string Model { get; set; }

        [Column]
        public decimal? Price { get; set; }

        [Column]
        public string Description { get; set; }

        [Column]
        public long? Quantity { get; set; }
        
        [Column]
        public string ImagePath { get; set; }

        #endregion

    }
}
